﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectRules.aspx.cs" Inherits="AlbonWeb.Manager.StyleManager.SelectRules" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>New Order</title>
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
    
</head>
<body>
    <form id="form1" runat="server">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Manager>>StyleManager</span>
        </div>
        <table width="750" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="3" class="content_title">
                    Selection Rules
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td align="right">
                    <asp:DropDownList ID="ddlRef1" runat="server">
                    </asp:DropDownList>
                </td>
                <td align="center">
                    <asp:RadioButtonList ID="rbtnrule" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="1" Selected="True">Co-Exist</asp:ListItem>
                        <asp:ListItem Value="0">Un-Exist</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlRef2" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td>
                    &nbsp;
                </td>
                <td align="center">
                    <asp:Button ID="btnAdd" class="btnNext" runat="server" Text="Add Rules" OnClick="btnAdd_Click" />
                </td>
                <td align="left">
                    
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td colspan="3">
                    &nbsp;
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td colspan="3" align="center">
                    <table class="tb_list" border="1" width="70%">
                        <tr class="tr_list_head">
                            <td>
                                NO.
                            </td>
                            <td>
                                Rules
                            </td>
                            <td>
                                Delete
                            </td>
                        </tr>
                        <asp:Repeater ID="repRule" runat="server">
                            <ItemTemplate>
                                <tr class="tr_list_content">
                                    <td>
                                        <%#Container.ItemIndex+1 %>
                                    </td>
                                    <td>
                                        <%#Eval("refStyle1")+" is "%>
                                        <b>
                                            <%#(Eval("rule").ToString() == "1" ? "<span style='color:blue'>Co-Exists</span>" : "<span style='color:red'>Un-Exists</span>")%></b>
                                        <%#" with " + Eval("refStyle2")%>
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="imgDelete" runat="server" ImageUrl="/images/grv_delete.gif"
                                            CommandArgument='<%#Eval("ID") %>' OnClick="imgDelete_Click" OnClientClick="return confirm('Are you sure DELETE this Rule?')" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="First" LastPageText="Last"
                                NextPageText="Next" PageIndexBoxType="DropDownList" PrevPageText="Prev" ShowBoxThreshold="15"
                                ShowCustomInfoSection="Left" ShowMoreButtons="False" SubmitButtonText="Go" TextAfterPageIndexBox=""
                                TextBeforePageIndexBox="Goto" CustomInfoClass="pageinfo" CustomInfoHTML="Current Page : %CurrentPageIndex%    Total Page: %PageCount%"
                                CustomInfoSectionWidth="30%" CustomInfoTextAlign="Left" OnPageChanging="AspNetPager1_PageChanging"
                                PageSize="11">
                            </webdiyer:AspNetPager>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td colspan="3" align="center">
                    <asp:Label ID="lbmessage" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
